<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<ul id="menu" class="list-group">
	<li class="list-group-item">
	<a role="button" data-toggle="collapse" data-target="#system_detail"> <span>系统管理</span></a>
		<ul class="in" id="system_detail">
			<shiro:hasPermission name="department:list">
				<li class="department"><a href="/department/list.do">部门管理</a></li>
			</shiro:hasPermission>
				
			<shiro:hasPermission name="employee:list">
				<li class="employee"><a href="/employee/list.do">员工管理</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="permission:list">
				<li class="permission"><a href="/permission/list.do">权限管理</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="role:list">
				<li class="role"><a href="/role/list.do">角色管理</a></li>
			</shiro:hasPermission>
			
		</ul> 
		
	<a role="button" data-toggle="collapse" data-target="#customer_detail"> <span>客户管理</span></a>
		<ul class="in" id="customer_detail">
			<shiro:hasPermission name="customer:list">
				<li class="customer"><a href="/customer/list.do">客户信息</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="customerTraceHistory:list">
				<li class="customerTraceHistory"><a href="/customerTraceHistory/list.do">跟进历史</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="customerTransfer:list">
				<li class="customerTransfer"><a href="/customerTransfer/list.do">移交历史</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="formalCustomer:list">
				<li class="formalCustomer"><a href="/formalCustomer/list.do">正式客户</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="customerPool:list">
				<li class="customerPool"><a href="/customerPool/list.do">客户池</a></li>
			</shiro:hasPermission>
		</ul> 
		
	<a role="button" data-toggle="collapse" data-target="#dictionary_detail"> <span>数据字典管理</span></a>
		<ul class="in" id="dictionary_detail">
			<shiro:hasPermission name="systemDictionary:list">
				<li class="systemDictionary"><a href="/systemDictionary/list.do">字典目录管理</a></li>
			</shiro:hasPermission>
			
			<shiro:hasPermission name="systemDictionaryItem:list">
				<li class="systemDictionaryItem"><a href="/systemDictionaryItem/list.do">字典明细管理</a></li>
			</shiro:hasPermission>
		</ul> 
		
	<a role="button" data-toggle="collapse" data-target="#chart_detail"><span>报表</span></a>
		<ul class="in" id="chart_detail">
			<shiro:hasPermission name="chart:list">
				<li class="chart"><a href="/chart/list.do">客户报表</a></li>
			</shiro:hasPermission>
		</ul>
		
	<a role="button" data-toggle="collapse" data-target="#notice_detail"><span>其它管理</span></a>
		<ul class="in" id="notice_detail">
			<shiro:hasPermission name="notice:list">
				<li class="notice"><a href="/notice/list.do">发布通知</a></li>
			</shiro:hasPermission>
		</ul>
			
	</li>
	
	
</ul>

<script type="text/javascript">
    $(".in li.${menu}").addClass("active");
</script>
